@if(count($replies))
<div class="card-body">
    <ul class="list-group list-group-flush">
        {{--帖子列表--}}
        @foreach($replies as $reply)
            <li class="d-flex align-items-center list-group-item d-flex justify-content-between align-items-center topic_intro">


                <div class="flex-grow-1 px-2">
                    <a class="text-decoration-none text-success"
                       href="{{route('topics.show',$reply->topic_id)}}">
                        <i class="fa-regular fa-envelope-open"></i>&nbsp;
                        {{$reply->topic->title}}
                    </a>
                    <div>

                        <small><a class="text-decoration-none" href="#"><i class="fa-regular fa-comment-dots"></i>&nbsp;{{$reply->content}}</a></small>

                        <span>  ·   </span>
                        <small><i class="fa-regular fa-clock"></i>
                            {{$reply->created_at->diffForHumans()}}</a></small>

                    </div>
                </div>
                <span
                    class="pointerA badge bg-{{$reply->reply_count?'danger':'secondary'}} rounded-pill text-bg-dark">{{$reply->reply_count}}</span>
            </li>

        @endforeach
    </ul>
</div>

<div class="card-footer text-muted">
    @include('utils._pages',['data'=>$replies])
</div>
@else
    @include('utils._nodata_topic',['info'=>'这人什么也没说~'])
@endif
